<?php
namespace Dao;

class Queue extends DbTable {
	const ENGINE_MYISAM = 1;
	const ENGINE_MEMORY = 2;

	public function engine($engine) {
		if ($engine == self::ENGINE_MYISAM) {
			return $this->execute("ALTER TABLE `{$this->tables}` ENGINE = MYISAM");
		} elseif ($engine == self::ENGINE_MEMORY) {
			return $this->execute("ALTER TABLE `{$this->tables}` ENGINE = MEMORY");
		}
	}
}